/** @file SystemFunction.hpp
 *  @author Lukáš Michalík
 *  @version 1.0.0
 *  @date 16.4.2013
 */



#ifndef SYSTEMFUNCTION_HPP_
#define SYSTEMFUNCTION_HPP_

/** @addtogroup RaspBerryPi_Power_Control
  * @{
  */

/** @addtogroup System_Control
  * @{
  */

/** @defgroup System_Control_Exported_Constants
  * @{
  */



/*

const char* const DataFileNameString[] = { "/mnt/powercontrol/Vrms", "/mnt/powercontrol/Irms"};
const char* const ENV[] = { "dev","ram0","ram1","ram2","ram3","ram4","ram5","ram6","ram7","ram8","ram9","ram10","ram11","ram12","ram13","ram14","ram15","mnt","powercontrol","Vrms","Irms"};
#define VRMSFILE DataFileNameString[0]
#define IRMSFILE DataFileNameString[1]
#define MUJCOMAND mount

#define DEV ENV[0]
#define RAM0 ENV[1]
#define RAM1 ENV[2]
#define RAM2 ENV[3]
#define RAM3 ENV[4]
#define RAM4 ENV[5]
#define RAM5 ENV[6]
#define RAM6 ENV[7]
#define RAM7 ENV[8]
#define RAM8 ENV[9]
#define RAM9 ENV[10]
#define RAM10 ENV[11]
#define RAM11 ENV[12]
#define RAM12 ENV[13]
#define RAM13 ENV[14]
#define RAM14 ENV[15]
#define RAM15 ENV[16]
#define MNT ENV[17]
#define MOUNTPOINT ENV[18]
#define FILEVRMS ENV[19]
#define FILEIRMS ENV[20]
*/



/**
  * @}
  */

/**
  * @}
  */


/**
  * @}
  */

void SystemLoadSPI(void);
uint8_t DataToFileWrite(const char* const  cesta, const char* const filename, float data);
void mkWorkingdir (void);
void  Loadenv(void);
void SystemMkfs(void);
void SystemMount(void);
#endif /* SYSTEMFUNCTION_HPP_ */
